function look(){ 
if(event.shiftKey || event.ctrlKey || event.altKey) 
return false;
}
function stop(){ 

return false; 

} 

//document.oncontextmenu=stop;  //禁用右键
//document.onkeydown=look; 
//document.onselectstart=stop;//禁止你的复制
function forbidCopy()//禁止复制代码
{
	document.onkeydown=look;
	document.oncontextmenu = stop;  //禁用右 
	document.oncopy = stop; 
	document.oncut = stop;
	document.ondrag = stop; 
	document.onselectstart=stop;//禁止你的复制
}


function getELXY(e){ 
   return {x:e.offsetLeft,y:e.offsetTop}; 
 } 
function getELWH(e){ 
    return {w:e.offsetWidth,h:e.offsetHeight}; 
 } 
function getClientXY(e){ 
    e=e||event; 
    return {cx:e.clientX,cy:e.clientY}; 
 } 
document.onclick = function(e){ 

    var obj = document.getElementById("chapter_list"); 
    var lt = getELXY(obj)['x']; 
    var rt = getELXY(obj)['x'] + getELWH(obj)['w']; 
    var topY = getELXY(obj)['y']; 
    var bottomY = getELXY(obj)['y'] + getELWH(obj)['h']; 
    var mouseXX = getClientXY(e)['cx']; 
    var mouseYY = getClientXY(e)['cy']; 
    if(mouseXX<lt || mouseXX>rt || mouseYY<topY || mouseYY>bottomY){ 	
        if ( obj.style.display == ""){
            obj.style.display = "none" 
        }else {
            obj.style.display = ""
        }
    }else{ 

   } 

 }; 